import time

import akshare as ak

# 港股指数 历史数据 东财
# https://quote.eastmoney.com/gb/zsHSTECF2L.html
code = 'HSI'
df = ak.stock_hk_index_daily_em(symbol=code)
print(df)
date = time.strftime("%Y%m%d", time.localtime())
# df.to_excel(f'港股指数-{code}-历史行情数据-{date}.xlsx', index=False)

